package com.jeff

class PlantController {

    def scaffold = Plant
	
	def beforeInterceptor = [
		action:this.&checkUser,
		except:['list','show','index']		
	]
	
	def checkUser = {
		if (!session.user) {
			redirect(controller:'user', action:'login')
			false
		}
	}
}
